package com.demo.dao;

import com.demo.entity.UserDisease;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

public interface UserDiseaseDao extends JpaRepository<UserDisease, String>, JpaSpecificationExecutor<UserDisease> {
    @Modifying
    @Query(value = "ALTER TABLE  tb_user_disease  AUTO_INCREMENT=?1", nativeQuery = true)
    void updateAutoIncrement(int i);
}
